<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ include file="../common/taglibs.jsp"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="${rootPath}/css/a.css" type="text/css" rel="stylesheet" />
<link href="${rootPath}/css/index.css" type="text/css" rel="stylesheet" />
<link href="${rootPath}/css/common.css" type="text/css" rel="stylesheet" />
<title>终端序列号查询</title>

<script type="text/javascript"
	src="<s:url value="/js/jquery-1.3.2.js" />"></script>
<script type="text/javascript" src="<s:url value="/js/common.js" />"></script>
<script language="javascript" type="text/javascript"
	src="<s:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>
<script type='text/javascript' src='<s:url value="/dwr/engine.js"/>'></script>
<script type='text/javascript' src='<s:url value="/dwr/interface/MccQuery.js"/>'></script>
<script type="text/javascript">
$(document).ready(function(){
	
	   $("#revPower").click(function() {

	         var posBrand = $("#posBrand").val();
	         if(posBrand == -1){
	           alert("请选择品牌");
	           return false;
	         } 
	         var beginSerialNum = $("#beginSerialNum").val();
	         if( null == beginSerialNum || "" == beginSerialNum ){
	           alert("请选择开始号段");
	           return false;
	         } 
	         
	         var endSerialNum = $("#endSerialNum").val();
	         if( null == endSerialNum || "" == endSerialNum ){
	           alert("请选择结束号段");
	           return false;
	         } 
				if(!window.confirm("您确定要撤回吗？")){
					  return;
				}
		 		$("#importForm").attr("action","<%=basePath%>/terminal/revYsbTerminalPosSN.ct");
				$("#importForm").submit(); 
		});
   });
	
</script>
</head>
<body>
<table class="tb">
    <tbody>
		<s:form id="importForm" action="revYsbTerminalPosSN.ct" method="post"
			namespace="/terminal"  theme="simple">
			
        <tr class="tb-line">
            <td class="tb-td" colspan="6"><div class="tb-h2">POS收单运营管理平台</div><font color="red">提示：终端品牌、型号后台规整中</font></td>
        </tr>

        <tr class="tb-line">
            <td class="tb-td" colspan="6"><div class="tb-h3">云商宝终端SN撤回</div></td>
        </tr>
		<tr class="tb-line">
					<td align="right" class="tb-td">
						<div class="tb-h4">品牌：</div>
					</td>
					<td class="tb-td">
			        	<label class="tb-select">
							<s:select cssClass="queryWidth" name="tPosAgent.posBrand" id="posBrand" 
								list="#request.brandMap" listKey="key" listValue="value"  headerKey="-1" headerValue="不限"/>
		           		</label>
					</td>
						
					<td width="12%" style="min-width: 150px" align="right" class="tb-td">
		                <div class="tb-h4">开始号段SN：</div>
		             </td>
					<td class="tb-td">
                    	<span>
                    		<input id="beginSerialNum" name="tPosAgent.beginSerialNum"  placeholder="输入开始号段SN" style="width:150px;"/>
                    	</span>	
					</td>
					
					<td width="12%" style="min-width: 150px" align="right" class="tb-td">
		                <div class="tb-h4">结束号段SN：</div>
		             </td>
					<td class="tb-td">
                    	<span>
                    		<input id="endSerialNum" name="tPosAgent.endSerialNum"  placeholder="输入结束号段SN" style="width:150px;"/>
                    	</span>	
					</td>
				</tr>
				<tr>
					<td colspan="6" align="center"><div style="color: blue;">
							<s:actionmessage />
						</div>
						<div style="color: red;">
							<s:actionerror />
						</div>
					</td>
				</tr>

				<tr class="tb-line">
					<td class="tb-td line-submit" align="right" colspan="6">
		                <label class="tb-input-submit">
		                    <input id="revPower" type="button"  value="撤回" />
		                </label>
					</td>
				</tr>
		</s:form>
    </tbody>
</table>
</body>
</html>